package com.rr.sc.bo.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rr.sc.bo.ReportsBo;
import com.rr.sc.dao.ReportsDao;
import com.rr.sc.model.util.ReportItem;

@Service
public class ReportsBoImpl implements ReportsBo {
    private ReportsDao reportsDao;

    @Autowired
    public ReportsBoImpl(ReportsDao reportsDao) {
	super();
	this.reportsDao = reportsDao;
    }

    public List<ReportItem> getStatisticsData(Long userId, int month, int year, boolean groupByYear, boolean showAllMonths, boolean showAllYears,
	    boolean groupByAccount, boolean groupByCategory, Long accountId, Long categoryId, String currencyId) {
	return reportsDao.getStatisticsData(Arrays.asList(userId), month, year, groupByYear, showAllMonths, showAllYears, groupByAccount,
		groupByCategory, accountId, categoryId, currencyId);
    }

}
